package com.springboot.study;

import com.spring.boot.myjdbc.MyJdbcTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: study
 * @description: 测试
 * @author: chengqj
 * @create: 2019-07-09 11:50
 **/
@RestController
public class HelloController {
    @Autowired
    private MyJdbcTemplate myJdbcTemplate;

    @RequestMapping("hello")
    public String getValue(){
        return myJdbcTemplate.getSelectResult();
    }
}
